package com.int_tech.MessageCodeAll.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liubochao on 2018/7/14.
 */
@Entity
@Table(name = "c_code_A0_new")
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class CodeA0New {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(length = 8)
    private Integer id;

    //车牌号
    @Column(length = 64)
    private String carNumber;

    //所在位置
    @Column(length = 64)
    private String station;

    //源数据
    @Column(length = 2048)
    private String dataString;

    //lng
    @Column(length = 64)
    private String lng;

    //lat
    @Column(length = 64)
    private String lat;

    //车长
    @Column(length =64)
    private String length;


    //车宽
    @Column(length =64)
    private String width;

    //车高
    @Column(length =64)
    private String height;

    //行
    @Column(length = 64)
    private String hang;

    //列
    @Column(length = 64)
    private String lie;

    //装载率
    @Column(length = 64)
    private String rate;

    //站点名称
    @Column(length = 64)
    private String location;

    //任务单号
    @Column(length = 64)
    private String messionNumber;

    //测量结果
    @Column(length = 1024)
    private String rateDateString;

    //测量结果每个点的量方
    @Column(length = 1024)
    private String everyRate;

    //创建时间
    @Temporal(TemporalType.TIMESTAMP)
    @Column(updatable = false)
    private Date createdTime;

    //更新时间
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedTime;

    //状态(0,初始状态；1，计算装载率完成；2，初始异常；-1，计算装载率异常；3，正常任务单；-3，频率过快任务并装载率与上一个偏差不大的任务单，不予存储)
    @Column(length = 2)
    private int status;

    //状态(0,初始状态;不为0即处理完成）
    @Column(length = 2)
    private int checkStatus;

    @Column(length = 64)
    private String isInStation;

    //开门事件编号
    @Column(length = 16)
    private String openNumber;

    //关门事件标号
    @Column(length = 16)
    private String closeNumber;
}
